package com.fiona.remoting.netty;

import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

public interface Constants {
    public static final Charset DEFAULT_CHARSET = StandardCharsets.UTF_8;
    //version information
    public static final byte MESSAGE_KEY_LENGTH = 24;
    public static final byte REQUEST_TYPE = 1;
    public static final byte RESPONSE_TYPE = 2;
    public static final byte HEARTBEAT_REQUEST_TYPE = 3;
    public static final byte HEARTBEAT_RESPONSE_TYPE = 4;
    public static final int MAX_FRAME_LENGTH = 8 * 1024 * 1024;
    
    public static final int HEAD_LENGTH = 26; //messageKey + type + codec
    
    public static final String PING = "ping";
    public static final String PONG = "pong";

}
